﻿using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace Treasland.MassiveGridMap.Editor {
    public class ConnectionPoint : Node {

        public enConnectionPoint pointType;

        public ConnectionPoint(enConnectionPoint _pointType, enNodeType _type = enNodeType.ConnectionPoint) : base(_type) {
            pointType = _pointType;
        }


        public void Draw(Rect _rect) {
            rect = _rect;
            if (pointType == enConnectionPoint.InPoint) {
                GUI.DrawTexture(rect, GUIStyleUtil.inPointStyleImg);
            } else if (pointType == enConnectionPoint.OutPoint) {
                GUI.DrawTexture(rect, GUIStyleUtil.outPointStyleImg);
            }
        }

    }
}